<nav class="navbar navbar-expand-lg bg-body-tertiary">
  <div class="container-fluid">
    <img src="{{ url_for('static', filename='images/logo2.png') }}" alt="Лого" width="50" height="50">
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Переключатель навигации">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav">
        <li class="nav-item">
          <a class="nav-link active" aria-current="page" href="/">Кафе Конфэ</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{ url_for('user.user_list') }}">Пользователи</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{ url_for('author.author_list') }}">Авторы</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{ url_for('article.article_list') }}">Статьи</a>
        </li>
        {% if current_user.is_authenticated %}
            <li class="nav-item">
              <a class="nav-link" href="{{ url_for('article.create_article_form') }}">Создать статью</a>
            </li>
            <li class="nav-item">
              <a class="nav-link active" href="{{ url_for('auth.logout') }}">Logout ({{ current_user.name }})</a>
            </li>
        {% else %}
            <li class="nav-item">
              <a class="nav-link active" href="{{ url_for('auth.login') }}">Login</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="{{ url_for('user.register') }}">Зарегистрироваться</a>
            </li>
        {% endif %}
    </div>
  </div>
</nav>